package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.ShopBiaozhunDO;
import com.iotechn.unimall.data.domain.ShopBiaozhunLogDO;
import com.iotechn.unimall.data.dto.BiaozhunCountDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 文章
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-04-21 13:35:44
 */
public interface ShopBiaozhunLogMapper extends BaseMapper<ShopBiaozhunLogDO> {

    public List<ShopBiaozhunLogDO> search(String title);

   public boolean batchInsert(@Param("shopBiaozhunDOS") List<ShopBiaozhunLogDO> shopBiaozhunDOS);

    public boolean batchDelete(@Param("shopLogId") Long shopLogId);

    public List<ShopBiaozhunLogDO> getBiaozhunByShopId(@Param("shopId") Long shopId,@Param("jiedianId") Long jiedianId);

    /**
     * 统计今天
     * @param shopId
     * @return
     */
    public List<BiaozhunCountDTO> getTodayCount(@Param("shopId") Long shopId);

    /**
     * 统计昨天
     * @param shopId
     * @return
     */
    public List<BiaozhunCountDTO> getYesterdayCount(@Param("shopId") Long shopId);


}
